/* eslint-disable import/no-commonjs */

const webpackConfig = require("webpack"); // eslint-disable-line no-unused-vars
const path = require("path");

module.exports = {
    context: __dirname,
    entry: {
        main: "./src/main.js",
    },
    mode: "none",
    output: {
        path: path.join(__dirname, "dist"),
        filename: "[name].bundle.js",
        publicPath: path.join(__dirname, "./dist/pdfs"),
        clean: true,
    },
    module: {
        rules: [
            // ...
            {
                test: /\.pdf$/,
                use: 'url-loader'
            }
        ]
    }
};
